package com.jxd.project.wzgl.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jxd.project.wzgl.dao.IWareHouseKeeperDao;
import com.jxd.project.wzgl.vo.WarehouseVO;
import com.jxd.project.menu.model.WarehouseKeeper;
import com.jxd.project.wzgl.service.IWareHouseKeeperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName WareHouseKeeperServiceImpl
 * @Description WarehouseKeeper Service Implementation
 * @Author 刘成
 * @Date 2025/10/1 20:00
 * @Version 1.0
 */
@Service
public class WareHouseKeeperServiceImpl extends ServiceImpl<IWareHouseKeeperDao, WarehouseKeeper> implements IWareHouseKeeperService {
    @Autowired
    private IWareHouseKeeperDao wareHouseKeeperDao;

    @Override
    public List<WarehouseVO> queryHouseKeeperByHouseId(int warehouseId) {
        return wareHouseKeeperDao.selectHouseKeeperByHouseId(warehouseId);
    }

    @Override
    public List<WarehouseVO> queryWarehouseByEmpNo(int houseKeeperId) {
        return wareHouseKeeperDao.selectHouseIdByHouseKeeperId(houseKeeperId);
    }

}